#include<bits/stdc++.h>
using namespace std;
int main() {
  int x = 1234567890;
  cout<<x<<endl;
  x = 9876543210;
  cout<<x<<endl;
  return 0;
}

